﻿namespace Luka;

/// <summary>
/// 工作单元接口
/// </summary>
public interface IUnitOfWork : IScoped
{
    /// <summary>
    /// 开启事务
    /// </summary>
    void BeginTran();

    /// <summary>
    /// 提交事务
    /// </summary>
    void CommitTran();

    /// <summary>
    /// 回滚事务
    /// </summary>
    void RollbackTran();

    /// <summary>
    /// 关闭
    /// </summary>
    void Close();
}